import requires from "../requires";
//获取轮播图
export const bannerListInfo = () => requires({
    method: 'get',
    url: '/banner?type=2'
})

//获取发现好歌单
export const reqFundMusicListInfo = () => requires({
    method: 'get',
    url: '/personalized?limit=10'
})

//获取搜索歌曲
export const reqSearchMusicInfo = (musicName) => requires({
    method: 'get',
    url: `/cloudsearch?keywords=${musicName}`,
    withCredentials: true
})

//用户登录
export const reqUserLoginInfo = (username, password) => requires({
    method: 'get',
    url: `/login/cellphone?phone=${username}&password=${password}`,
    withCredentials: true   //解决网络拥挤问题  跨域请求
})

//获取每日推荐
export const reqDayRecommend = () => requires({
    method: 'get',
    url: '/recommend/songs'
})

//所有榜单  排行榜
export const reqRankingListInfo = () => requires({
    method: 'get',
    url: '/toplist'
})